package cleancode.model;

/**
 * User with ultra rights. Any operation is always allowed.
 */
public class UltraUser extends User
{
    public static final String ULTRA_USER_NAME = "ultra";

    public UltraUser()
    {
        super( ULTRA_USER_NAME );
    }

    public boolean checkPermission( Operation command )
    {
        return true;
    }

    public NameOrientedModelSet<Role> getRoles()
    {
        return new NameOrientedModelSet<>();
    }

    public NameOrientedModelSet<Operation> getSupportedOperations()
    {
        return new NameOrientedModelSet<>();
    }

}
